<template>
  <el-container>
    <el-aside width="200px">
      <left :fz="fz" v-on:tofa="listenchild"></left>
    </el-aside>
    <el-container>
      <el-header>
        <h1 style="color: #f99">宝批龙</h1>
        <!-- <h2>{{$store.state.count}}</h2> -->
      </el-header>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Menu from "@/view/structure/menu";
export default {
  data() {
    return {
      fz: "父传子传值",
    };
  },
  components: {
    left: Menu,
  },
  methods: {
    listenchild(data) {
      console.log(data);
    },
  },
};
</script>


<style>
#app .el-main {
  overflow: unset;
}
.el-header {
  position: relative;
  background-color: #888;
  line-height: 60px;
}
.el-container {
  height: 100%;
}
.el-aside {
  overflow: unset;
  background-color: #545c64;
}
</style>